
  import java.util.LinkedList;
  
  public class ListTest {
      public static void main(String[] args) {
          LinkedList list = new LinkedList();
          list.add("盛茂淞");
          list.add("张学友");
          list.add("张雪原");
          list.add("许钰玮");
          list.add("娄老师");
          Iterator it = list.iterator();
                // Iterator it = list.descendingIterator();//逆序迭代
          while (it.hasNext()) {
              String next = (String) it.next();
              System.out.println(next);
          }
     }
 }
